
<P>{{extend 'layout.html'}}<!-- css --><!-- end css --> 
</P>
<div id="feature_story_dimension">
    <div id="feature_note">Feature story</div>
    <br/>
        {{if len(story) >0 :}}
	<div class= "feature_title">
		{{=A(story[feature_story].title,_href=URL(r=request,f='read',args=[story[feature_story].id]))}}
	<a id= "writer_name">
     <font size ="3">       {{="--  "}}{{=story[feature_story].writer}}</font>
	</a>
	</div>
        <br/>
        <div id="feature_comment">
            {{comment=db(db.comment.story==story[feature_story].id).select(orderby=~db.comment.score)}}
<!-- comment 1 -->
            {{if len(comment) !=0:}}
 <!--           <img src="/welcome/static/startdecoration3bright.jpg" alt="Angry face"  />-->
                {{=comment[0].body}}
 <!--               <img src="/welcome/static/endecoration3.jpg" alt="Angry face"  /> -->
                {{="--  "}}<i>{{=comment[0].author.alias}}</i>
	    {{pass}}
			<br/><br/>
<!-- comment 2 -->
	    {{if len(comment) >1:}}
<!--            <img src="/welcome/static/startdecoration3bright.jpg" alt="Angry face"  />-->
		{{=comment[1].body}}
             <!-- <img src="/welcome/static/endecoration3.jpg" alt="Angry face"  />-->
             {{="--  "}}<i>{{=comment[1].author.alias}}</i>
            {{pass}}
			<br/><br/>
<!-- comment 3 -->
	    {{if len(comment) >2:}}
<!--            <img src="/welcome/static/startdecoration3bright.jpg" alt="Angry face"  />-->
		{{=comment[2].body}}
<!--                <img src="/welcome/static/endecoration3.jpg" alt="Angry face"  /> -->
{{="--  "}}<i>{{=comment[2].author.alias}}</i>
            {{pass}}
        </div>

        {{pass}}

</div>
<DIV id="table_layout">
	<!-- {{if category == None:}}
<div id="newhotscorepost_dimension">
<p id="newhotscore">
    {{for s in sorts:}}
    {{=A(s,_href=URL(r=request,args=[category,s,page]))}}
    {{pass}}
    {{if page>0:}}[{{=A('prev',_href=URL(r=request,args=[category,sort,page-1]))}}]{{pass}}
    {{if page<3 and len(story)>9:}}[{{=A('next',_href=URL(r=request,args=[category,sort,page+1]))}}]{{pass}}
</p>
{{else:}}
<p id="newhotscore">
    {{for s in sorts:}}
    {{=A(s,_href=URL(r=request,args=[category,s,page]))}}
    {{pass}}
    {{if page>0:}}[{{=A('prev',_href=URL(r=request,args=[category,sort,page-1]))}}]{{pass}}
    {{if page<3 and len(story)>9:}}[{{=A('next',_href=URL(r=request,args=[category,sort,page+1]))}}]{{pass}}
</p>
{{pass}}
<br/>
<br/>
</div>
-->{{if len(story) > 2 :}}<!-- a table cell for story and rating --><!-- table for Story --->

	<TABLE id="Story1">
		<TR>
			 <TD>
				<p class="foreword">{{=A(story[0].title,_href=URL(r=request,f='read',args=[story[0].id]))}}<FONT COLOR="#424242"><FONT SIZE=2>{{='_'}}{{=story[0].writer}}</FONT></FONT>
								</p>
			</TD>
		</TR>
		<TR>
			<TD>
				<P class="index_comment">{{comment=db(db.comment.story==story[0].id).select(orderby=~db.comment.score)}}
				{{if len(comment) !=0:}}<!--<img src="/welcome/static/startdecoration2bright.jpg" alt="Angry face"  />-->
				{{=comment[0].body}}<!--<img src="/welcome/static/endecoration2bright.jpg" alt="Angry face"  />-->
				     <font size ="3">  <i> {{="--  "}}{{=comment[0].author.alias}}</i></font>
                                {{pass}}
 
				</P>
			</TD>
		</TR>
		<TR>
			<TD>
				<P class="sub_line">{{=A('%i comments'%story[0].comments,_href=URL(r=request,f='comments',args=[story[0].id]))}}
				{{=A('report',_href=URL(r=request,f='report',args=[story[0].id]))}}
				{{if story[0].author==session.authorized:}}
				{{=A('edit',_href=URL(r=request,f='edit_post',args=[story[0].id]))}}
				{{=A('delete',_href=URL(r=request,f='delete',args=[story[0].id]))}}
				{{pass}} 
				</P>
			</TD>
		</TR>
	</TABLE>
	<TABLE id="Story2">
		<TR>
			<TD>
                            <P class="foreword">{{=A(story[1].title,_href=URL(r=request,f='read',args=[story[1].id]))}}<FONT COLOR="#424242"><FONT SIZE=2>{{='_'}}{{=story[1].writer}}</FONT></FONT>
								</P>
			</TD>
		</TR>
		<TR>
			<TD>
				<P class="index_comment">{{comment=db(db.comment.story==story[1].id).select(orderby=~db.comment.score)}}
				{{if len(comment) !=0:}}<!--<img src="/welcome/static/startdecoration2bright.jpg" alt="Angry face"  />-->
				{{=comment[0].body}}<!--<img src="/welcome/static/endecoration2bright.jpg" alt="Angry face"  />-->
				<font size ="3"> <i>  {{="--  "}}{{=comment[0].author.alias}}</i></font>
                                {{pass}}
				</P>
			</TD>
		</TR>
		<TR>
			<TD>
				<P class="sub_line">{{=A('%i
				comments'%story[1].comments,_href=URL(r=request,f='comments',args=[story[1].id]))}}
				{{=A('report',_href=URL(r=request,f='report',args=[story[1].id]))}}
				{{if story[1].author==session.authorized:}}
				{{=A('edit',_href=URL(r=request,f='edit_post',args=[story[1].id]))}}
				{{=A('delete',_href=URL(r=request,f='delete',args=[story[1].id]))}}
				{{pass}}
				</P>
			</TD>
		</TR>
	</TABLE>
	<TABLE id="Story3">
		<TR>
			<TD>
				<P class="foreword">{{=A(story[2].title,_href=URL(r=request,f='read',args=[story[2].id]))}}<FONT COLOR="#424242"><FONT SIZE=2>{{='_'}}{{=story[2].writer}}</FONT></FONT>
								</P>
			</TD>
		</TR>
		<TR>
			<TD>
				<P class="index_comment">{{comment=db(db.comment.story==story[2].id).select(orderby=~db.comment.score)}}
				{{if len(comment) !=0:}}<!--<img src="/welcome/static/startdecoration2bright.jpg" alt="Angry face"  />-->
				{{=comment[0].body}}<!--<img src="/welcome/static/endecoration2bright.jpg" alt="Angry face"  />-->
				<font size ="3">  <i> {{="--  "}}{{=comment[0].author.alias}}</i></font>
                                {{pass}}
				</P>
			</TD>
		</TR>
		<TR>
			<TD>
				<P class ="sub_line">{{=A('%i comments'%story[2].comments,_href=URL(r=request,f='comments',args=[story[2].id]))}}
				{{=A('report',_href=URL(r=request,f='report',args=[story[2].id]))}}
				{{if story[2].author==session.authorized:}}
				{{=A('edit',_href=URL(r=request,f='edit_post',args=[story[2].id]))}}
				{{=A('delete',_href=URL(r=request,f='delete',args=[story[2].id]))}}
				{{pass}}
				</P>
			</TD>
		</TR>
	</TABLE>
	<P>{{pass}} 
	</P>
</DIV>
